package io.gitee.zhangbinhub.admin.log.po

import io.gitee.zhangbinhub.admin.common.base.BaseQueryPo
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty

/**
 * @since JDK 11
 */
@ApiModel("日志查询参数")
data class LogQueryPo(
    @ApiModelProperty(name = "是否查询往日历史数据，true-往日历史，false-当日数据")
    var history: Boolean = false,

    @ApiModelProperty(name = "客户端ip")
    var remoteIp: String? = null,

    @ApiModelProperty(name = "网关ip")
    var gatewayIp: String? = null,

    @ApiModelProperty(name = "请求路径")
    var path: String? = null,

    @ApiModelProperty(name = "路由服务id")
    var serverId: String? = null,

    @ApiModelProperty(name = "客户端名称")
    var clientName: String? = null,

    @ApiModelProperty(name = "操作用户名称")
    var userName: String? = null,

    @ApiModelProperty(name = "开始时间")
    var startTime: Long? = null,

    @ApiModelProperty(name = "结束时间")
    var endTime: Long? = null,

    @ApiModelProperty(name = "响应状态码")
    var responseStatus: Int? = null
) : BaseQueryPo()
